<?php
namespace Api\Controller;

use Think\Controller;

class MoneyController extends CommonController
{
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * 我的余额
     * @return [type] [description]
     */
    public function index()
    {
        $money = D('Api/Money', 'Service')->money(USER_ID);
        success($money);
    }

    /**
     * 余额明细
     * @return [type] [description]
     */
    public function log()
    {
        $page = I('post.page', 1, 'intval');
        $log  = D('Api/Money', 'Service')->log(USER_ID, $page);

        success($log);
    }
}
